import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Dog {
        private String name;     // 小狗名称
        private String type;     // 小狗品种
        private int age;     // 小狗年龄
        private String hobby;    //小狗爱好

        public Dog(){

        }
        public Dog(String name, String type, int age, String hobby) {
            this.name = name;
            this.type = type;
            this.age = age;
            this.hobby = hobby;
        }

    public Dog(String s, String s1, Double aDouble) {
    }

    // 获取Dog姓名
        public String getName() {
            return name;
        }

        // 设置Dog姓名
        public void setName(String name) {
            this.name = name;
        }
        // 获取Dog种类
        public String getType() {
            return type;
        }
        // 设置Dog种类
        public void setType(String type) {
            this.type = type;
        }
        // 获取Dog年龄
        public int getAge() {
            return age;
        }
        // 设置Dog年龄
        public void setAge(int age) {
            this.age = age;
        }

        // 获取爱好
        public String getHobby() {
            return hobby;
        }
        // 设置爱好
        public void setHobby(String hobby) {
            this.hobby = hobby;
        }
        // Dog的详细信息
        public void info(){
            System.out.printf("小狗名称：%s\n品种：%s\n小狗年龄：%d\n小狗爱好：%s\n",name,type,age,hobby);
        }



        public static void main(String[] args) {

            Dog d1 = new Dog("Tom", "哈士奇",2,"拆家");
            Dog d2 = new Dog("jerry", "中华田园犬",3,"护家");
            Dog d3 = new Dog("旺财","柯基",2,"吃喝玩");

            // 请在下面的Begin-End之间按照注释中给出的提示编写正确的代码
            /********** Begin **********/
            // 将三个狗的对象放进对象数组中，并依次调用该对象的info方法
            d1.info();
            d2.info();
            d3.info();


            /********** End **********/
        }
    }

